package cn.com.shopec.erp.financing.vo;

import java.io.Serializable;

/**
 * 代销VO
 * @author Administrator
 *
 */
public class BasisFormVo implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
	public BasisFormVo(){}
	
	public BasisFormVo(String id, String supplierName, String supplierCode,
			String orderCode, String productCode, String productName,
			String count, double salesPrice, double theCost,
			String settlementType, String bucklPoint, double preferentialPrice,
			String activityCode, String startTime, String endTime,
			String benefit, double total, Integer cycleType, String brand) {
		super();
		this.id = id;
		this.supplierName = supplierName;
		this.supplierCode = supplierCode;
		this.orderCode = orderCode;
		this.productCode = productCode;
		this.productName = productName;
		this.count = count;
		this.salesPrice = salesPrice;
		this.theCost = theCost;
		this.settlementType = settlementType;
		this.bucklPoint = bucklPoint;
		this.preferentialPrice = preferentialPrice;
		this.activityCode = activityCode;
		this.startTime = startTime;
		this.endTime = endTime;
		this.benefit = benefit;
		this.total = total;
		this.cycleType = cycleType;
		this.brand = brand;
	}
	
	private String piNo;
	
	public String getPiNo() {
		return piNo;
	}

	public void setPiNo(String piNo) {
		this.piNo = piNo;
	}

	private String id;
	
	/** 供应商名称 */
	private String supplierName;
	
	/** 供应商code */
	private String supplierCode;
	
	/** 订单编号 */
	private String orderCode;
	
	/** 货品编号 */
	private String productCode;
	
	/** 货品名称 */
	private String productName;
	
	/** 销售数量 */
	private String count;
	
	/** 销售价 */
	private double salesPrice;
	
	/**成本价**/
	private double theCost;
	
	/**结算方式  --扣点---代价**/
	private String settlementType;
	
	/**扣点比例**/
	private String bucklPoint;
	
	/** 优惠金额 */
	private double preferentialPrice;
	
	/** 活动编号 */
	private String activityCode;
	
	/**结算开始日期**/
	private String startTime;
	
	/**结算结束日期**/
	private String endTime;
	
	/**让利 **/
	private String benefit;
		
	/**结算金额**/
	private double total;
	
	/**周期类型**/
	private Integer cycleType;
	
	/**品牌**/
	private String brand;
	/**结算周期**/
	private String accountTime;
	
	private double priPrice;
	
	private double unitPrice;
	
	private double ranData;
	
	public double getRanData() {
		return ranData;
	}

	public void setRanData(double ranData) {
		this.ranData = ranData;
	}

	public double getUnitPrice() {
		return unitPrice;
	}

	public void setUnitPrice(double unitPrice) {
		this.unitPrice = unitPrice;
	}

	public double getPriPrice() {
		return priPrice;
	}

	public void setPriPrice(double priPrice) {
		this.priPrice = priPrice;
	}

	private String orderTime;

	public String getOrderTime() {
		return orderTime;
	}

	public void setOrderTime(String orderTime) {
		this.orderTime = orderTime;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getSupplierName() {
		return supplierName;
	}

	public void setSupplierName(String supplierName) {
		this.supplierName = supplierName;
	}

	public String getSupplierCode() {
		return supplierCode;
	}

	public void setSupplierCode(String supplierCode) {
		this.supplierCode = supplierCode;
	}

	public String getOrderCode() {
		return orderCode;
	}

	public void setOrderCode(String orderCode) {
		this.orderCode = orderCode;
	}

	public String getProductCode() {
		return productCode;
	}

	public void setProductCode(String productCode) {
		this.productCode = productCode;
	}

	

	public String getBenefit() {
		return benefit;
	}

	public void setBenefit(String benefit) {
		this.benefit = benefit;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public String getCount() {
		return count;
	}

	public void setCount(String count) {
		this.count = count;
	}

	public double getSalesPrice() {
		return salesPrice;
	}

	public void setSalesPrice(double salesPrice) {
		this.salesPrice = salesPrice;
	}

	public double getTheCost() {
		return theCost;
	}

	public void setTheCost(double theCost) {
		this.theCost = theCost;
	}

	public String getSettlementType() {
		return settlementType;
	}

	public void setSettlementType(String settlementType) {
		this.settlementType = settlementType;
	}

	public String getBucklPoint() {
		return bucklPoint;
	}

	public void setBucklPoint(String bucklPoint) {
		this.bucklPoint = bucklPoint;
	}

	public double getPreferentialPrice() {
		return preferentialPrice;
	}

	public void setPreferentialPrice(double preferentialPrice) {
		this.preferentialPrice = preferentialPrice;
	}

	public String getActivityCode() {
		return activityCode;
	}

	public void setActivityCode(String activityCode) {
		this.activityCode = activityCode;
	}

	public double getTotal() {
		return total;
	}

	public void setTotal(double total) {
		this.total = total;
	}

	public Integer getCycleType() {
		return cycleType;
	}

	public void setCycleType(Integer cycleType) {
		this.cycleType = cycleType;
	}

	public String getStartTime() {
		return startTime;
	}

	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}

	public String getEndTime() {
		return endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}

	public String getBrand() {
		return brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((brand == null) ? 0 : brand.hashCode());
		result = prime * result + ((endTime == null) ? 0 : endTime.hashCode());
		result = prime * result
				+ ((startTime == null) ? 0 : startTime.hashCode());
		result = prime * result
				+ ((supplierCode == null) ? 0 : supplierCode.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		BasisFormVo other = (BasisFormVo) obj;
		if (brand == null) {
			if (other.brand != null)
				return false;
		} else if (!brand.equals(other.brand))
			return false;
		if (endTime == null) {
			if (other.endTime != null)
				return false;
		} else if (!endTime.equals(other.endTime))
			return false;
		if (startTime == null) {
			if (other.startTime != null)
				return false;
		} else if (!startTime.equals(other.startTime))
			return false;
		if (supplierCode == null) {
			if (other.supplierCode != null)
				return false;
		} else if (!supplierCode.equals(other.supplierCode))
			return false;
		return true;
	}

	public String getAccountTime() {
		return accountTime;
	}

	public void setAccountTime(String accountTime) {
		this.accountTime = accountTime;
	}


	
	
	
}
